package com.lecyon.farm.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author YaoZheng
 * @since 2020-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("同步信息设定表")
public class FmSyncInformation extends Model<FmSyncInformation> {

    @Override
    protected Serializable pkVal() {
        return id;
    }

    @TableId(value = "id", type = IdType.NONE)
    @ApiModelProperty(name = "id", value = "主键ID")
    private Long id;

    @ApiModelProperty(name = "area_code", value = "区域编码")
    private String areaCode;

    @ApiModelProperty(name = "work_type", value = "作业类型")
    private String workType;

    @ApiModelProperty(name = "ijs_active", value = "是否启用")
    private String isActive;

    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;

    @ApiModelProperty(name = "del_flag", value = "逻辑删除标记")
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String delFlag;

    @TableField(exist = false)
    private String userToken;

}
